import { defineStore } from 'pinia'
import { LoginState } from '@/store/types/login-info'
const useSpinStore = defineStore({
    id: 'login-info',
    state: (): LoginState => ({
        userInfo: {

        },
        token: "",
    }),
    getters: {
        getUserInfo(): object {
            return this.userInfo
        },
        getToken(): string {
            return this.token
        }
    },
    actions: {
        setUserInfo(userInfo: object) {
            this.userInfo = userInfo
        },
        setToken(token: string) {
            this.token = token
        }
    }
})

export default useSpinStore;